import { IsNotEmpty, IsOptional, IsString } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";

export class CreateSysDictDto {
    @ApiProperty({
        description: "网盘激活码激活时长",
        example: "父字典名称",
        required: false
    })
    @IsOptional()
    name: string;
    
    @ApiProperty({
        description: "panCodeTime",
        example: "字典标识",
        required: false
    })
    @IsOptional()
    code: string;
    
    @ApiProperty({
        description: "排序",
        example: "1",
        required: false
    })
    @IsOptional()
    sort: number;
    
    @ApiProperty({
        description: "父id",
        example: "1",
        required: false
    })
    @IsOptional()
    parentId: number;
    
    @ApiProperty({
        description: "字典key",
        example: 1,
        required: false
    })
    @IsOptional()
    dictKey: number;
    
    @ApiProperty({
        description: "字典名称",
        example: "天卡",
        required: false
    })
    @IsOptional()
    dictValue: string;
    
    @ApiProperty({
        description: "备注",
        example: "备注",
        required: false
    })
    @IsOptional()
    remark: string;
}
